package com.prs.crm.domain.approval;

import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
/**
 * @author 廖苹宏
 * @version 2012-5-16 9:44:47 业务类别（财务类、业务类……）
 * */
@Entity
@Table(name="app_JobType")
public class JobType extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private int id;
	private String name;
	@ManyToOne
	private JobType parent;
	@OneToMany(mappedBy="parent")
	private Set<JobType> childs;
	private String remark;    //类别说明
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public JobType getParent() {
		return parent;
	}
	public void setParent(JobType parent) {
		this.parent = parent;
	}
	public Set<JobType> getChilds() {
		return childs;
	}
	public void setChilds(Set<JobType> childs) {
		this.childs = childs;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
}
